body.user-profile-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(2, 11, 15, 0.94), rgba(31, 31, 31, 0.92)),
    url('../images/trail_running.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}


/* ============================================
   User Profile Page
   ============================================ */
.profile-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 56px;
}

.profile-home-link {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(208, 162, 74, 0.68);
  border-radius: 50%;
  background: rgba(2, 11, 15, 0.72);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.profile-home-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-home-link:hover,
.profile-home-link:focus-visible {
  border-color: #d0a24a;
  background: rgba(208, 162, 74, 0.18);
  color: #d0a24a;
  transform: translateY(-2px);
  outline: none;
}

.profile-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 26px;
  min-height: 320px;
  padding: 34px;
  border: 1px solid rgba(208, 162, 74, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(2, 11, 15, 0.92), rgba(2, 11, 15, 0.54)),
    url('../images/cycling.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.profile-hero::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #8d621d, #d0a24a, #8d621d);
}

.profile-hero__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  max-width: 780px;
}

.profile-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 2px solid rgba(208, 162, 74, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #d0a24a;
  font-family: Impact, "Arial Black", "Roboto Condensed", sans-serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.profile-hero h1,
.profile-panel h2 {
  font-family: Impact, "Arial Black", "Roboto Condensed", sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(190, 138, 45, 0.34);
}

.profile-hero h1 {
  font-size: clamp(54px, 8vw, 118px);
}

.profile-hero p:not(.eyebrow) {
  max-width: 630px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-rank-card {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  min-width: 210px;
  padding: 22px;
  border: 1px solid rgba(208, 162, 74, 0.42);
  border-radius: 8px;
  background: rgba(2, 11, 15, 0.72);
  backdrop-filter: blur(10px);
}

.profile-rank-card span,
.profile-rank-card small,
.profile-panel span,
.profile-muted {
  color: rgba(255, 255, 255, 0.72);
}

.profile-rank-card span,
.profile-rank-card small {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-rank-card strong {
  display: block;
  margin: 10px 0 7px;
  color: #d0a24a;
  font-family: Impact, "Arial Black", "Roboto Condensed", sans-serif;
  font-size: 58px;
  line-height: 1;
}

.profile-dashboard,
.profile-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.profile-dashboard {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(230px, 0.65fr));
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-panel {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(208, 162, 74, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(2, 11, 15, 0.88), rgba(31, 31, 31, 0.9));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.profile-panel--wide {
  min-height: 250px;
}

.profile-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-panel h2 {
  color: #ffffff;
  font-size: 32px;
}

.profile-pill,
.profile-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: #d0a24a;
  color: #020b0f;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.profile-progress {
  margin-top: 30px;
}

.profile-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-progress strong {
  color: #d0a24a;
  font-family: Impact, "Arial Black", "Roboto Condensed", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.profile-progress__track {
  height: 12px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-progress__track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8d621d, #d0a24a);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  border: 1px solid rgba(208, 162, 74, 0.22);
  background: rgba(208, 162, 74, 0.12);
}

.profile-stats-grid div {
  padding: 16px;
  background: rgba(2, 11, 15, 0.62);
}

.profile-stats-grid span,
.profile-list span,
.profile-timeline span {
  font-size: 13px;
  font-weight: 800;
}

.profile-stats-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 23px;
  line-height: 1;
}

.profile-muted {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

.profile-list,
.profile-timeline {
  display: grid;
  gap: 0;
  margin-top: 18px;
  list-style: none;
}

.profile-list li,
.profile-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(208, 162, 74, 0.2);
}

.profile-list strong,
.profile-timeline time {
  flex: 0 0 auto;
  color: #d0a24a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-timeline li {
  justify-content: flex-start;
}

.profile-timeline time {
  width: 54px;
}

.profile-panel--image {
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(2, 11, 15, 0.08), rgba(2, 11, 15, 0.88)),
    url('../images/rappel.jpg');
  background-size: cover;
  background-position: center;
}

.profile-panel--image p:not(.eyebrow) {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

